package hero_info

import (
	"go_server/game_server/protocol/pb"
	"go_server/zinx/ziface"
)

func BindApiHandler_HeroInfo(server ziface.IServer) {
	server.AddRouter(uint32(pb.ProtocolManager_GetHeros), Hero_info_serviceObj.router_GetHeros)
	server.AddRouter(uint32(pb.ProtocolManager_AddHero), Hero_info_serviceObj.router_AddHero)
	server.AddRouter(uint32(pb.ProtocolManager_DelHero), Hero_info_serviceObj.router_DelHero)
	server.AddRouter(uint32(pb.ProtocolManager_UpLvHero), Hero_info_serviceObj.router_UpLvHero)
	server.AddRouter(uint32(pb.ProtocolManager_UpStarHero), Hero_info_serviceObj.router_UpStarHero)
	server.AddRouter(uint32(pb.ProtocolManager_UnlockHero), Hero_info_serviceObj.router_UnlockHero)
	server.AddRouter(uint32(pb.ProtocolManager_UniToExcFragments), Hero_info_serviceObj.router_UniToExcFragments)
	//----分隔线----------------------------------------------------------
	server.AddRouter(uint32(pb.ProtocolManager_UpdateCellList), Hero_info_serviceObj.router_UpdateCellList)
	server.AddRouter(uint32(pb.ProtocolManager_AddCell), Hero_info_serviceObj.router_AddCell)
	server.AddRouter(uint32(pb.ProtocolManager_FuseCell), Hero_info_serviceObj.router_FuseCell)
	server.AddRouter(uint32(pb.ProtocolManager_RecombinCell), Hero_info_serviceObj.router_RecombinCell)
	server.AddRouter(uint32(pb.ProtocolManager_EquipCell), Hero_info_serviceObj.router_EquipCell)
	server.AddRouter(uint32(pb.ProtocolManager_UnEquipCell), Hero_info_serviceObj.router_UnEquipCell)
}
